package com.tdkj.model.bbs;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * EjfCreditsLog entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ejf_credits_log", catalog = "west")
public class EjfCreditsLog implements java.io.Serializable {

	// Fields

	private Integer logId;
	private String userId;
	private String fromUser;
	private Short credits;
	private String action;
	private Timestamp createTime;

	// Constructors

	/** default constructor */
	public EjfCreditsLog() {
	}

	/** minimal constructor */
	public EjfCreditsLog(String userId, String action) {
		this.userId = userId;
		this.action = action;
	}

	/** full constructor */
	public EjfCreditsLog(String userId, String fromUser, Short credits, String action, Timestamp createTime) {
		this.userId = userId;
		this.fromUser = fromUser;
		this.credits = credits;
		this.action = action;
		this.createTime = createTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "logID", unique = true, nullable = false)
	public Integer getLogId() {
		return this.logId;
	}

	public void setLogId(Integer logId) {
		this.logId = logId;
	}

	@Column(name = "userID", nullable = false, length = 15)
	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Column(name = "fromUser", length = 15)
	public String getFromUser() {
		return this.fromUser;
	}

	public void setFromUser(String fromUser) {
		this.fromUser = fromUser;
	}

	@Column(name = "credits")
	public Short getCredits() {
		return this.credits;
	}

	public void setCredits(Short credits) {
		this.credits = credits;
	}

	@Column(name = "action", nullable = false, length = 10)
	public String getAction() {
		return this.action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	@Column(name = "createTime", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

}